using Codeflows.Results;
using Codeflows.Tracking;

namespace Codeflows.Dispatch.ResultHandlers
{
    class SleepHandler : ResultHandler<DelayedJumpResult>
    {        
        protected override void Handle(CodeflowInstance instance, DelayedJumpResult result)
        {
            instance.Sleep(result.Action, result.Arguments, result.Delay);
        }
    }
}